/**
 * Copyright &copy; 2013-2018 青岛数码人网络科技有限公司   All rights reserved.
 */
package cn.net.ecode.elec.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 代理企业Entity
 * @author xiaodunshan
 * @version 2019-09-28
 */
public class ElecAgencyBtype extends DataEntity<ElecAgencyBtype> {
	
	private static final long serialVersionUID = 1L;
	private String typeCode;		// 类型
	private String projectName;		// 项目名称
	private String projectImg;		// 项目图片
	private Date implementDate;		// 实施时间
	private String mainFunction;		// 主要功能
	private String projectDetails;		// 项目概况
	private String detailsImg;		// 项目概况图片

	public ElecAgencyBtype() {
		super();
	}

	public ElecAgencyBtype(String id){
		super();
		this.id = id;
	}

	@Length(min=0, max=64, message="类型长度不能超过 64 个字符")
	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}
	
	@Length(min=0, max=64, message="项目名称长度不能超过 64 个字符")
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	
	@Length(min=0, max=100, message="项目图片长度不能超过 100 个字符")
	public String getProjectImg() {
		return projectImg;
	}

	public void setProjectImg(String projectImg) {
		this.projectImg = projectImg;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getImplementDate() {
		return implementDate;
	}

	public void setImplementDate(Date implementDate) {
		this.implementDate = implementDate;
	}
	
	@Length(min=0, max=500, message="主要功能长度不能超过 500 个字符")
	public String getMainFunction() {
		return mainFunction;
	}

	public void setMainFunction(String mainFunction) {
		this.mainFunction = mainFunction;
	}

	public String getProjectDetails() {
		return projectDetails;
	}

	public void setProjectDetails(String projectDetails) {
		this.projectDetails = projectDetails;
	}

	public String getDetailsImg() {
		return detailsImg;
	}

	public void setDetailsImg(String detailsImg) {
		this.detailsImg = detailsImg;
	}
}